home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00109_Script_returnToQTVR < prev    next >
Text File  |  1999-04-25  |  2KB  |  62 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13.  
  14. --Each "return to aircraft" button consists of two elements: #bmp "Picture" and #richText "Field". Both elements are linked and should be percieved by user as a whole: one element's rollover triggers the other element's rollover. This script is a "Picture"'s behavior .
  15.  
  16. property mySprite, NeutralName, HiliteName
  17.  
  18. global comeFromQTVR, retFrame, gRtrnPln
  19.  
  20.  
  21. on new me
  22.   -- Button is only visible if this detail was navigated from a QTVR interior or exterior sections
  23.   if comeFromQTVR then
  24.     set mySprite = the spriteNum of me
  25.     set neutralName = "r"
  26.     set HiliteName = "r-hil"
  27.     set the stretch of sprite mySprite = FALSE
  28.     set the member of sprite mySprite = member neutralName
  29.   end if 
  30. end
  31.  
  32.  
  33. on mouseEnter me
  34.   
  35.   if comeFromQTVR then
  36.     set the member of sprite mySprite = member  HiliteName
  37.   end if
  38.   
  39. end
  40.  
  41. on mouseLeave me
  42.   if comeFromQTVR then
  43.     set the member of sprite mySprite = member  NeutralName
  44.   end if
  45.   
  46. end
  47.  
  48. on mouseUp me
  49.   if comeFromQTVR then
  50.     if gRtrnPln = "EXT" then --if came from QTVR exterior
  51.       go to retFrame
  52.     else
  53.       go to frame "qtvr"--if came from QTVR interior
  54.     end if
  55.     puppetsound 3, "mouse5"
  56.   end if
  57.   cursor -1
  58. end
  59.  
  60.  
  61.  
  62.